pub mod bodys {
    pub struct User {
        name: String,
        age: u8,
        live: bool,
        title: i32,
    }

    pub fn new_user(username: String, num: u8) -> User {
        return User {
            name: username,
            age: num,
            live: true,
            title: 321,
        }
    }

    pub fn construct_user(data: (String, u8, bool, i32)) -> User {
        User {
            name: data.0,
            age: data.1,
            live: data.2,
            title: data.3,
        }
    }

    pub fn transform_user(username: String, user: User) -> User {
        User {
            name: username,
            ..user
        }
    }

    impl User {
        pub fn is_live(&self) -> bool {
            self.live
        }

        pub fn get_name(&self) -> String {
            self.name.clone()
        }
    }
}